Program to check whether a number lies in range or not